{extend name="../front" /}
{block name="head"}<title>积分记录－{:config('site.name')}</title>{/block}
{block name="main"}
<main class="container py-3">
  {include file='navbar' /}
  <div class="card">
    <div class="card-body">
      <div class="card-title fw-bold mb-3">最近100条积分记录</div>
      {volist name="list" id="item"}
      <p class="card-text d-flex justify-content-around">
        <span>{lt name="$i" value="10"}0{/lt}{$i}</span>
        <span>{eq name="item.log_type" value="inc"}<span class="text-danger">增</span>{else/}<span class="text-success">减</span>{/eq}</span>
        <span>{$item.log_value}</span>
        <span>{$item.log_name}</span>
        <span>{$item.log_time|date='Y-m-d H:i:s'}</span>
      </p>
      {/volist}
    </div>
  </div>
</main>
{/block}